import React from "react";
import { Carousel } from 'antd'

export default function option1() {
  const contentStyle = {
    height: '160px',
    color: '#fff',
    lineHeight: '160px',
    textAlign: 'center',
    background: '#364d79',
  }
  return (
    <div>
      <h3>轮播图</h3>
      <Carousel autoplay>
        <div>
          <div style={contentStyle}>
            <img style={{ width: '50px', height: '50px' }} src="/img/logo.png" alt="logo192" />
          </div>
        </div>
        <div>
          <h3 style={contentStyle}>2</h3>
        </div>
        <div>
          <div style={contentStyle}>
            <img style={{ width: '50px', height: '50px' }} src="/img/logo.png" alt="logo192" />
          </div>
        </div>
        <div>
          <h3 style={contentStyle}>4</h3>
        </div>
      </Carousel>
    </div>
  )
}